package com.example.liyuehui.paging.datasource;

import android.arch.lifecycle.MutableLiveData;
import android.arch.paging.DataSource;

public class TextDataSourceFactory extends DataSource.Factory<Integer, String> {
	public MutableLiveData<NetStatus> netStatusLiveData = new MutableLiveData<>();

	@Override
	public DataSource<Integer, String> create() {
		return new TextDataSource(netStatusLiveData);
	}


	public static enum NetStatus {
		INIT,
		LOADING,
		LOAD_END,
		NET_ERROR,
		BOTTOM
	}
}
